[//登陆判断渲染首页

async function( kuo,Context,context){
    let $DATA = Object.assign({},this.$DATA);
    let $_SESSION = await  Mem.Get("session/"+kuo.sessionid);
    if($_SESSION &&  typeof($_SESSION['adminid']) != "undefined" && $_SESSION['adminid'] > 0){
        let adminmen = await  Kuo_admin.Groupscaidan($_SESSION['groups'],kuo.sessionid);
        let admingroupsname = await  Kuo_admin.Groupsid($_SESSION['groups']);
        let $hash = 'safetoken/'+$_SESSION['adminid'];
        $DATA.token = Mode("Tools").Uuid();
        await Mem.Set($hash,$DATA.token);
        $DATA.code =1;
        $DATA.data ={
            adminmen:adminmen,
            admininame:$_SESSION['account'],
            admingroupsname:admingroupsname,
        };
    }else{
        $DATA.data = kuo.sessionid;
        $DATA.code = 99;
    }
    Context.body = JSON.stringify($DATA);
}

]